#include<iostream>
using namespace std;
template<typename T>
class Complex {
private:
    T real;
    T imag; 
public:
    Complex(T r=0, T i=0):real(r), imag(i){}
    Complex operator+(const Complex&other){
    	return Complex(real+other.real,imag+other.imag);
	}
    void Print() const { 
        cout <<"("<<real<<","<<imag<<")"<<endl;
    }
};
int main()
{
	double r1,i1;
	double r2,i2;
	cin>>r1>>i1;
	cin>>r2>>i2;
	Complex<double> x(r1,i1);
	Complex<double> y(r2,i2);
	Complex<double> z=x+y;
	z.Print();
	return 0;
}